package jhlee42;

public class J33ExPatterns {
	public static void main(String[] args) {
		

		//System.out.println("--------------------------------------------------------------------------------------------------------------------------");

				
		int tab=0;
		int star=0;
		int a=0;

		/* 첫번째 */
		for(int i = 1;i <=9; ++i){												
			if(i==1){				
				tab = 3;
				star = 1;				
			}
			else if(i==2){				
				tab = 2;
				star = 3;				
			}
			else if(i==3){				
				tab = 1;
				star = 5;				
			}			
			else if(i==4){				
				tab = 0;
				star = 7;				
			}						
			else if(i==5){				
				tab = 1;
				star = 5;				
			}			
			else if(i==6){				
				tab = 2;
				star = 3;				
			}
			else if(i==7){				
				tab = 3;
				star = 1;				
			}			

						
			
			if(i <=7 ){
				for(int j = 1;j <=tab; ++j){
				System.out.print("   ");
				}		
				
				for(int k = 1;k <=star; ++k){
				System.out.print(" + ");	
				}								
			}
			
			
			/* 두번째 */	
			
			if(i==1){				
				tab = tab + 5;
				star = 1;				
			}
			else if(i==2){				
				tab = tab + 5;
				star = 2;				
			}
			else if(i==3){				
				tab = tab + 5;
				star = 3;				
			}			
			else if(i==4){				
				tab = tab + 5;
				star = 4;				
			}						
			else if(i==5){				
				tab = tab + 5;
				star = 5;				
			}			
			else if(i==6){				
				tab = tab + 5;
				star = 4;				
			}
			else if(i==7){				
				tab = tab + 5;
				star = 3;				
			}		
			else if(i==8){				
				tab = tab + 0;
				star = 2;				
			}	
			else if(i==9){				
				tab = tab + 0;
				star = 1;				
			}	
			
			
			
			for(int j = 1;j <=tab; ++j){
			System.out.print("   ");
			}
		
			for(int k = 1;k <=star; ++k){
			System.out.print(" + ");	
			}		
			
			
			
			/* 셋번째 */
			
			if(i==1){				
				tab = tab + 6;
				star = 1;				
			}
			else if(i==2){				
				tab = tab + 6;
				star = 3;				
			}
			else if(i==3){				
				tab = tab + 6;
				star = 5;				
			}			
			else if(i==4){				
				tab = tab + 0;
				star = 13;				
			}						
			else if(i==5){				
				tab = tab + 4;
				star = 5;				
			}			
			else if(i==6){				
				tab = tab + 4;
				star = 3;				
			}
			else if(i==7){				
				tab = tab + 4;
				star = 1;				
			}			

						
			
			if(i <=7){
				for(int j = 1;j <=tab; ++j){
				System.out.print("   ");
				}		
				
				for(int k = 1;k <=star; ++k){
				System.out.print(" + ");	
				}								
			}
			
			System.out.print("\n"); // 줄바꿈			
			System.out.print("\n"); // 줄바꿈			
																					
		}										
	}
}
